<!DOCTYPE html>
<html>
<head>
	<title>ra-amend-record-editor</title>
</head>
<body>
    <div id="app"></div>
	<script>
		var tempData = {
			"data": {
				"node": []
			},
			"sd": {
				"node": {
					"attr": {
						"__updateTime": {
							"base": "Datetime",
							"readOnly": false,
							"required": false,
							"title": "更新时间"
						},
						"__id": {
							"base": "Integer",
							"readOnly": false,
							"required": true,
							"title": "数据标识"
						},
						"__sd": {
							"base": "String",
							"lowerLimit": 1,
							"readOnly": false,
							"required": true,
							"title": "SD名称"
						},
						"__createTime": {
							"base": "Datetime",
							"readOnly": false,
							"required": true,
							"title": "创建时间"
						}
					},
					"impl": {
						"AmendRecoredRule": {
							"title": "补录规则",
							"display": ["__id"],
							"namespace": ["ns_user"],
							"repositories": [],
							"prop": {
								"importance": {
									"title": "重要程度",
									"base": "String",
									"required": true,
									"valueSource": [{
										"key": "high",
										"value": "重要程度高"
									}, {
										"key": "medium",
										"value": "重要程度中"
									}, {
										"key": "low",
										"value": "重要程度低"
									}]
								},
								"measureDimensions": {
									"title": "衡量维度",
									"base": "String",
									"required": true,
									"valueSource":
									[
										{
											"key": "integrity",
											"value": "完整性"
										}, {
											"key": "accuracy",
											"value": "准确性"
										}, {
											"key": "uniqueness",
											"value": "唯一性"
										}, {
											"key": "consistency",
											"value": "一致性"
										}, {
											"key": "normative",
											"value": "规范性"
										}
									]
								},
								"measureDimensionsContent": {
									"title": "衡量维度内容",
									"base": "String",
									"required": true,
									"valueSource":
									[
										{
											"key": "non_empty",
											"parent": "integrity",
											"value": "非空约束"
										},
										{
											"key": "code_value",
											"parent": "accuracy",
											"value": "代码取值约束"
										},
										{
											"key": "flag_value",
											"parent": "accuracy",
											"value": "标志取值约束"
										},
										{
											"key": "coding_value",
											"parent": "accuracy",
											"value": "编码取值约束"
										},
										{
											"key": "content",
											"parent": "accuracy",
											"value": "内容约束"
										},
										{
											"key": "date_content",
											"parent": "accuracy",
											"value": "日期内容约束"
										},
										{
											"key": "number_value",
											"parent": "accuracy",
											"value": "数值取值约束"
										},
										{
											"key": "uniqueness",
											"parent": "uniqueness",
											"value": "唯一性约束"
										},
										{
											"key": "information_flow",
											"parent": "consistency",
											"value": "信息流转约束"
										},
										{
											"key": "rule",
											"parent": "consistency",
											"value": "规则约束"
										},
										{
											"key": "accuracy",
											"parent": "normative",
											"value": "精度约束"
										},
										{
											"key": "length",
											"parent": "normative",
											"value": "长度约束"
										},
										{
											"key": "data_format",
											"parent": "normative",
											"value": "日期格式约束"
										}
									]
								},
								"qualityBusinessRule": {
									"title": "数据质量业务规则",
									"base": "String",
									"required": true,
									"upperLimit": 500
								},
								"dataStandard": {
									"title": "数据标准",
									"base": "String",
									"required": true,
									"upperLimit": 50
								},
								"businessSystem": {
									"title": "业务系统",
									"base": "String",
									"required": true,
									"upperLimit": 50
								},
								"dataSource": {
									"title": "数据源",
									"base": "String",
									"required": true,
									"upperLimit": 50
								},
								"schema": {
									"title": "库",
									"base": "String",
									"required": true,
									"upperLimit": 50
								},
								"metadataTable": {
									"title": "表",
									"base": "String",
									"required": true,
									"upperLimit": 50
								},
								"metadataField": {
									"title": "字段",
									"base": "String",
									"required": true,
									"upperLimit": 50
								},
								"needFeedback": {
									"title": "需要反馈",
									"base": "Boolean",
									"required": true,
									"valueSource": [{
										"key": true,
										"value": "是"
									}, {
										"key": false,
										"value": "否"
									}]
								},
								"amendRecord": {
									"title": "是否补录",
									"base": "Boolean",
									"required": true,
									"valueSource": [{
										"key": true,
										"value": "是"
									}, {
										"key": false,
										"value": "否"
									}]
								},
								"qualityTechnologyRule": {
									"title": "数据质量技术规则",
									"base": "String",
									"required": true,
									"upperLimit": 500
								},
								"checkSql": {
									"title": "检查SQL",
									"base": "String",
									"required": true,
									"upperLimit": 500
								},
								"mappingRules": {
									"title": "映射规则",
									"base": "String",
									"required": true,
									"upperLimit": 1000
								}
							}
						}
					}
				}
			}
		};
		var raReady = {
			ra: {openMessage:function(errMsg,errType){}},
			data: tempData,
			update: function(_ra,_data){
				this.ra = _ra;
			}
		};
	</script>
    <script src="./bundle.js"></script>
</body>
</html>
